package com.softaria.gwt.common.client.dialog;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.softaria.gwt.common.client.widget.Button;

public class AlertDialog extends Dialog {

  public AlertDialog(String title, String message) {
    super(title, message);

    Button button = new Button("OK", new ClickHandler() {
      public void onClick(ClickEvent event) {
        hide();
      }
    });
    addButton(button);
  }

}
